import axiosData from '@/api/axios';

export default {
  // 查询产品列表
  queryByCondition(params) {
    return axiosData.post('/v3/40089-process-v2/product/queryByCondition', params);
  },
  // 分页查询产品列表
  queryPageByCondition(params) {
    return axiosData.post('/v3/40089-process-v2/product/queryPageByCondition', params);
  },
  // 新增产品
  addProduct(params) {
    return axiosData.post('/v3/40089-process-v2/product/add', params);
  },
  // 删除产品
  delProduct(params) {
    return axiosData.post('/v3/40089-process-v2/product/delListByIdList', params);
  },
  // 编辑产品
  editProduct(params) {
    return axiosData.post('/v3/40089-process-v2/product/edit', params);
  },
  // 新增工序
  addProcesses(params) {
    return axiosData.post('/v3/40089-process-v2/processes/add', params);
  },
  // 编辑工序
  editProcesses(params) {
    return axiosData.post('/v3/40089-process-v2/processes/edit', params);
  },
  // 工序列表
  getProcessesList(params) {
    return axiosData.post('/v3/40089-process-v2/processes/queryPageByCondition', params);
  },
  getProcessesListByCond(params) {
    return axiosData.post('/v3/40089-process-v2/processes/queryByCondition', params);
  },
  delProcesses(params) {
    return axiosData.post('/v3/40089-process-v2/processes/delListByIdList', params);
  },
  addBom(params) {
    return axiosData.post('/v3/40089-process-v2/productBom/add', params);
  },
  getBomList(params) {
    return axiosData.post('/v3/40089-process-v2/productBom/queryPageByCondition', params);
  },
  delBom(params) {
    return axiosData.post('/v3/40089-process-v2/productBom/delListByIdList', params);
  },
  editBom(params) {
    return axiosData.post('/v3/40089-process-v2/productBom/edit', params);
  }
};
